﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Text;
namespace lcps.Web.supplyplan
{
    public partial class Show : Page
    {        
        		public string strid=""; 
		protected void Page_Load(object sender, EventArgs e)
		{
			if (!Page.IsPostBack)
			{
				if (Request.Params["id"] != null && Request.Params["id"].Trim() != "")
				{
					strid = Request.Params["id"];
					int ID=(Convert.ToInt32(strid));
					ShowInfo(ID);
				}
			}
		}
		
	private void ShowInfo(int ID)
	{
		lcps.BLL.supplyplan bll=new lcps.BLL.supplyplan();
		lcps.Model.supplyplan model=bll.GetModel(ID);
		this.lblID.Text=model.ID.ToString();
		this.lblxh.Text=model.xh;
		this.lblplandate.Text=model.plandate.ToString();
		this.lblprojectname.Text=model.projectname;
		this.lblprojectid.Text=model.projectid;
		this.lblwbs.Text=model.wbs;
		this.lblxyunit.Text=model.xyunit;
		this.lblmateruser.Text=model.materuser;
		this.lblprojectunit.Text=model.projectunit;
		this.lblprojectmajor.Text=model.projectmajor;
		this.lblplannum.Text=model.plannum;
		this.lblplanoverdate.Text=model.planoverdate.ToString();
		this.lbladdplannum.Text=model.addplannum;

	}


    }
}
